<template>
	<div>
	<home-recommend :recommendList="recommendList" />
	<home-latestmusic :latestmusicList="latestmusicList" />
	<home-openapp />
	</div>
</template>

<script>
	import axios from 'axios'
	import api from '@/api'
	import homeRecommend from '@/components/indexContent/Recommend.vue'
	import homeLatestmusic from '@/components/indexContent/Latestmusic.vue'
	import homeOpenapp from '@/components/indexContent/Openapp.vue'
	export default {
		mounted () {
		axios.get(api.recommendList,{
		params : {
			"token":""
			}
		})
		.then((res)=>{
//			console.log(res)
			this.recommendList=res.data.result
			})
		.catch((err)=>{
			console.log(err)
		}),
		axios.get(api.latestmusicList,{
		params : {
			"token":""
			}
		})
		.then((res)=>{
//			console.log(res)
			this.latestmusicList=res.data.result
			})
		.catch((err)=>{
			console.log(err)
		})
		},
		data () {
		  	return{	
				recommendList:'',
				latestmusicList:''
			}	
		},
		components : {
			homeRecommend,
			homeLatestmusic,
			homeOpenapp
		}
	}
</script>

<style>
</style>